package com.hospital.user.registration.service.Imp;


import com.hospital.user.registration.dao.InsertGuahao;
import com.hospital.user.registration.entity.Consumeinfo;
import com.hospital.user.registration.entity.Doctor_queue;
import com.hospital.user.registration.entity.User_orderinfo;
import com.hospital.user.registration.service.InsertGuahaoI;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class InsertGuaImpl implements InsertGuahaoI {

    @Autowired
    private InsertGuahao guahao;

    @Override
    public boolean insertGua(Doctor_queue queue) {
        int i = guahao.insertGua(queue);
        if (i == 1) {
            return true;
        }
        return false;
    }

    @Override
    public boolean insertFei(Consumeinfo consumeinfo) {
        Integer fei = guahao.insertFei(consumeinfo);
        if (fei == 1) {
            return true;
        }
        return false;
    }

    @Override
    public boolean insertWei(User_orderinfo orderinfo) {
        Integer integer = guahao.insertWei(orderinfo);
        if (integer == 1) {
            return true;
        }
        return false;
    }
}
